$(function() {

    $('#btn').on('click', function() {

        var username = $('.form-username').val();
        var password = $('.form-password').val();

        $.ajax({
            type: 'POST',
            url: '/employee/employeeLogin',
            data: {
                username: username,
                password: password
            },
            success: function(res) {
                console.log(res);
                if (res.success) {
                    location.href = "user.html";
                } else {
                    alert('开小差了，抱歉客官');
                }
            }
        });

    });

});